package org.example.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.domain.po.ErpOrganization;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.domain.vo.ErpOrganizationVO;

import java.util.List;

/**
* @author DELL
* @description 针对表【erp_organization(机构表)】的数据库操作Mapper
* @createDate 2024-11-05 20:21:48
* @Entity org.example.domain.po.ErpOrganization
*/
public interface ErpOrganizationMapper extends BaseMapper<ErpOrganization> {
    List<ErpOrganizationVO> selectOrganVOTree(Long parentId);
    
    List<ErpOrganizationVO> queryParent(@Param("currentId") Long id, @Param("parentId") Long parentId, @Param("tenantId") Long tenantId);
}




